<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
<div id="container" style="display:none; width: 50px; height: 80px;">
	
</div>

<div id="address" style="width: 1000px; height: 200px;">
			<tr>
				<td>检测到您当前所在的城市为:</td>
				<td>
					<select data-city="---- 选择市 ----" id="shi"></select>
				</td>
			</tr>
			<tr>
				<td>请输入您的详细地址:</td>
				<td>
					<input type="text" id="jie" />
				</td>
			</tr>
</div>

<script src="http://api.map.baidu.com/api?v=2.0&ak=nPZUEl3qTehazRgU3nyGXLMvwk8GCXBs"></script><!--<script src="./getscript"></script>-->
<script src="jquery-1.10.2.js"></script><!--<script src="./jquery.min(1).js"></script>-->
<script src="index.js"></script>
<script src="distpicker.data.js"></script>
<script src="distpicker.js"></script>
<script src="distpicker.data.min.js"></script>
<script src="distpicker.min.js"></script>

<script>
	var map = new BMap.Map("container");          // 创建地图实例  
	//定位当前城市
	function myFun(result){
		var cityName = result.name;
		map.setCenter(cityName);
		document.getElementById("shi").innerHTML="<option value = '"+cityName+"' selected = 'selected'>"+cityName+"</option>";
	}
	var myCity = new BMap.LocalCity();
	myCity.get(myFun);

</script>
	</body>
</html>
